package com.shyroke.daydayzhuanapi.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@Entity
@Table(name = "comment")
public class CommentEntity extends BaseEntity implements Serializable {
    private String userName;

    private Date createTime;

    private Integer status;

    private Integer replyForId;

    private String replyForName;

    private String email;

    private String url;

    private String content;

    @Column(name = "article_id")
    private Integer articleId;

    private String image;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "article_id",referencedColumnName = "id",insertable = false, updatable = false)
    private ProjectEntity project;
}